/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package 解析.node.node;

import 解析.Matcher;

/**
 *
 * @author yanxi
 */
public class LastMatch extends Node {

    @Override
    public boolean match(Matcher matcher, int i, CharSequence seq) {
        if (i != matcher.oldLast) {
            return false;
        }
        return next.match(matcher, i, seq);
    }
    
    @Override
    public String toString(){
        return "\\G";
    }
}
